<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>轮播carousel</title>
    <link rel="stylesheet" href="../css/yelfui.min.css">
</head>
<body>
    <div class="container">
        <!-- 轮播组件 -->
        <div class="y-slider-wrap" id="carouse-slider">
            <!-- 轮播项 -->
            <ul class="slider">
                <li>
                    <a href="#">
                        <p>雨果学院</p>
                        <p>精彩好文，等你鉴赏!</p>
                        <img src="./image/img01.jpg" alt="1">
                    </a>
                </li>
                <li>
                    <a href="#">
                        <p>雨果学院</p>
                        <p>前端技术学习!</p>
                        <img src="./image/img02.jpg" alt="2">
                    </a>
                </li>
                <li>
                    <a href="#">
                        <p>雨果学院</p>
                        <p>精彩好文，等你鉴赏!</p>
                        <img src="./image/img03.jpg" alt="3">
                    </a>
                </li>
                <li>
                    <a href="#">
                        <p>雨果学院</p>
                        <p>精彩好文，等你鉴赏!</p>
                        <img src="./image/img04.png" alt="4">
                    </a>
                </li>
                <li><img src="./image/img05.jpg" alt="5"></li>
            </ul>
            <!-- 快速切换按钮 -->
            <div class="slider-btn">
                <a href="#" id="prev-btn">&lt;</a>
                <a href="#" id="next-btn">&gt;</a>
            </div>
            <!-- 指示器 -->
            <div class="cursor-pointer">
                <ol>
                </ol>
            </div>
        </div>
    </div>
    <script src="../js/yg-carousel.js"></script>
    <script>
        let slider = new Slider('#carouse-slider', {
            autoPlay: true,
            interval: 2000
        });
    </script>
</body>
</html>